<%@ page import="com.cisite.web.core.MenuItems" %>



<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'pId', 'error')} required">
	<label for="pId">
		<g:message code="menuItems.pId.label" default="PI d" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="pId" type="number" value="${menuItemsInstance.pId}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'menu', 'error')} ">
	<label for="menu">
		<g:message code="menuItems.menu.label" default="Menu" />
		
	</label>
	<g:textField name="menu" value="${menuItemsInstance?.menu}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'comment', 'error')} ">
	<label for="comment">
		<g:message code="menuItems.comment.label" default="Comment" />
		
	</label>
	<g:textField name="comment" value="${menuItemsInstance?.comment}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'sysetemId', 'error')} required">
	<label for="sysetemId">
		<g:message code="menuItems.sysetemId.label" default="Sysetem Id" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="sysetemId" type="number" value="${menuItemsInstance.sysetemId}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'itemLevel', 'error')} required">
	<label for="itemLevel">
		<g:message code="menuItems.itemLevel.label" default="Item Level" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="itemLevel" type="number" min="0" value="${menuItemsInstance.itemLevel}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'url', 'error')} ">
	<label for="url">
		<g:message code="menuItems.url.label" default="Url" />
		
	</label>
	<g:field type="url" name="url" value="${menuItemsInstance?.url}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'sort', 'error')} required">
	<label for="sort">
		<g:message code="menuItems.sort.label" default="Sort" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="sort" type="number" min="0" value="${menuItemsInstance.sort}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="menuItems.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="status" from="${com.cisite.common.WorkStatus?.values()}" keys="${com.cisite.common.WorkStatus.values()*.name()}" required="" value="${menuItemsInstance?.status?.name()}"  optionValue="label" />
</div>

<div class="fieldcontain ${hasErrors(bean: menuItemsInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="menuItems.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="type" from="${com.cisite.common.MenuType?.values()}" keys="${com.cisite.common.MenuType.values()*.name()}" required="" value="${menuItemsInstance?.type?.name()}"  optionValue="label" />
</div>

